all linear combinations of vectors from a subset S of a vector space [S]={c1s1+⋯+cnsn∣c1,...,cn∈R and s1,...,sn∈S}
notation can be [S] or 'span(S)' or 'sp(S)'
If the subset S=∅, then [S]={0} is the trivial subspace
Example 5.1
S={(12)} [S]={a(12)∣a∈R}
Example 5.2
S=⎩⎪⎨⎪⎧⎝⎜⎛120⎠⎟⎞,⎝⎜⎛210⎠⎟⎞⎭⎪⎬⎪⎫ is a subset of R3
The span is the xy-plane since any vector ⎝⎜⎛xy0⎠⎟⎞ can be made with a linear combination of vectors in S
Span of a subset is a subspace
Proof
If S is empty, the span is the trivial subspace.
If S is not empty, we only need to check that the span [S] is closed under linear combinations of pairs of vectors.
For si∈S and ck,p,r∈R, p⋅(c1s1+⋯+cnsn)+r⋅(cn+1sn+1+cmsm)=pc1s1+⋯+pcnsn+rcn+1sn+1+⋯+rcmsm
Here we have two linear combinations of S, i.e. two vectors from [S]. The linear combination of those two vectors yields another linear combination of si, which is clearly a linear combination of vectors in S, so this is also part of [S]. Thus, [S] is closed under linear combinations and is a subspace.
(Note some of the sj's may be the same, but they can be combined and still yield a linear combination of the elements)
Spanning set for subspace W is a subset S⊆W such that W=[S]
In other words, the subset S that spans W is the spanning set
interest is in *smallest* subset
Finding Spanning Sets
Example 5.3
Start with subset of R3 P=⎩⎪⎨⎪⎧⎝⎜⎛xyz⎠⎟⎞∣∣∣∣∣∣∣x+y+z=0⎭⎪⎬⎪⎫
Parametrize x+y+z=0→x=−y−z to get P=⎩⎪⎨⎪⎧y⎝⎜⎛−110⎠⎟⎞+z⎝⎜⎛−101⎠⎟⎞∣∣∣∣∣∣∣y,z∈R⎭⎪⎬⎪⎫
Clearly, this is the span for the set ⎩⎪⎨⎪⎧⎝⎜⎛−110⎠⎟⎞,⎝⎜⎛−101⎠⎟⎞⎭⎪⎬⎪⎫
Example 5.4
L=⎩⎪⎨⎪⎧⎝⎜⎛xyz⎠⎟⎞∣∣∣∣∣∣∣x−y+z=0 and x+2z=0⎭⎪⎬⎪⎫
row reduce to get y=−z and x=−2z
So the spanning set is ⎩⎪⎨⎪⎧⎝⎜⎛−2−11⎠⎟⎞⎭⎪⎬⎪⎫ and the span is ⎩⎪⎨⎪⎧z⎝⎜⎛−2−11⎠⎟⎞∣∣∣∣∣∣∣z∈R⎭⎪⎬⎪⎫
Example 5.5
Consider the space of quadratic polynomials P2={ax2+bx+c∣a,b,c∈R}
The spanning set is {x2,x,1}
linear polynomials and constant polynomials are also subspaces with similar spans
Suppose the space was instead {ax2+bx+c∣a+b+c=0}
parametrize as a=−b−c and the space is {−bx2−cx2+bx+c∣b,c∈R}={b(x−x2)+c(1−x2)∣b,c∈R}
so the span is [{x−x2,1−x2}]
Example 5.6
Find the spanning set of the vector space {(a+b3aa−2b5a+b)∣∣∣∣∣a,b∈R}
Separate them into {a(1315)+b(10−21)∣∣∣∣∣a,b∈R}
The spanning set is clearly {(1315),(10−21)}
Subspaces are naturally described as spans
Linear Independence
a set of vectors V in vector space is linearly independent if no v∈V is a linear combination of other vectors in V
A subset S of a vector space is linearly independent iff the only linear relationship c1s1+⋯+cnsn=0 is (0,...,0)
So, to determine linear independence, solve the equation c0s0+⋯+cnsn=0
and if there is a non-trivial solution, it is linearly dependent
In row echelon form, every 0 row is a linear combination of the other rows; similarly, every non-zero row is not a linear combination of other rows
If V is a vector space, S is a subset of that space, and v∈S, [S∪{v}]=[S] iff v∈[S]
In other words, adding a vector already in the span doesn't change the span, and removing a linearly dependent vector doesn't change the span
A set S is linearly independent iff removing any v∈S shrinks the span
Any finite set in a vector space has a linearly independent subset with the same span
Proof: just keep removing dependent vectors until its linearly independent
A subset is linearly dependent iff some si is a linear combination of the vectors before it
Proof
The set containing only the first element is linearly independent. Keep adding one at a time in order until you get a linearly dependent set. The last vector added is a linear combination of the ones before it. Remove it. Keep adding one at a time until you get a linearly dependent set. The last vector added is a linear combination of the ones before it. Remove it. Continue until you covered the whole set. Since you added them in order, clearly all the vectors that are a linear combination of the others are linear combinations of the ones before it.
Explanation using a real set
The set ⎩⎪⎨⎪⎧⎝⎜⎛123⎠⎟⎞,⎝⎜⎛101⎠⎟⎞,⎝⎜⎛426⎠⎟⎞,⎝⎜⎛347⎠⎟⎞,⎝⎜⎛021⎠⎟⎞,⎝⎜⎛266⎠⎟⎞,⎝⎜⎛144⎠⎟⎞⎭⎪⎬⎪⎫
is linearly dependent. Call them v1,...,v7
Start with v1. Clearly this is linearly independent because theres only one vector.
Add v2. The set {v1,v2} is linearly independent
Add v3. Now, v3=v1+3v2, so the set {v1,v2,v3} is linearly dependent. Remove it. v4=2v1+v2, so {v1,v2,v4} is linearly dependent. v5 is not a linearly combination of v1 or v2.
Continue to the end.
We see that there has to be a point where adding a vector makes the set dependent, so the new vector has to be a linear combination of the others, i.e. the vectors before it.
Example 5.7
Are ⎝⎜⎛123⎠⎟⎞,⎝⎜⎛1−12⎠⎟⎞,⎝⎜⎛−170⎠⎟⎞ linearly independent?
It doesn't matter whether these vectors are the rows or the columns in the matrix.
Rows: ⎝⎜⎛11−12−17320v1v2v3⎠⎟⎞−ρ1+ρ2ρ1+ρ3⎝⎜⎛1002−393−13v1v2−v1v3+v1⎠⎟⎞
Clearly the third row is −3 times the second. So, these vectors are linearly dependent because v3+v1=−3(v2−v1), or ⎝⎜⎛−170⎠⎟⎞=2⎝⎜⎛123⎠⎟⎞−3⎝⎜⎛1−12⎠⎟⎞
Columns:
We will show that the linear relationship doesn't change even if the vectors were the columns
The three vectors are ⎝⎜⎛123⎠⎟⎞,⎝⎜⎛1−12⎠⎟⎞,2⎝⎜⎛123⎠⎟⎞−3⎝⎜⎛1−12⎠⎟⎞
The third vector is expressed as a linear combination to show that the linear relation holds on row operations.
Subtract 2ρ1 from ρ2 ⎝⎜⎛103⎠⎟⎞,⎝⎜⎛1−32⎠⎟⎞,2⎝⎜⎛103⎠⎟⎞−3⎝⎜⎛1−32⎠⎟⎞
The relationship clearly still holds.
Subtract 3ρ1 from ρ3 ⎝⎜⎛100⎠⎟⎞,⎝⎜⎛1−3−1⎠⎟⎞,2⎝⎜⎛100⎠⎟⎞−3⎝⎜⎛1−3−1⎠⎟⎞
Add ρ3 to ρ1 ⎝⎜⎛100⎠⎟⎞,⎝⎜⎛0−3−1⎠⎟⎞,2⎝⎜⎛100⎠⎟⎞−3⎝⎜⎛0−3−1⎠⎟⎞
The vectors are now ⎝⎜⎛100⎠⎟⎞,⎝⎜⎛0−3−1⎠⎟⎞,⎝⎜⎛293⎠⎟⎞
This set would be the result of doing row operations, and clearly the relationship still holds. However here, it is very easy to see the exact combination.
Basis
basis of a vector space is a (ordered) sequence of vectors that is linearly independent and spans the space
ordered so you know what coordinates correspond to what vector (i.e. ⟨2,3⟩ is different from ⟨3,2⟩) standard (or natural) basis for Rn is En=⟨⎝⎜⎜⎜⎜⎛10⋮0⎠⎟⎟⎟⎟⎞,⎝⎜⎜⎜⎜⎛01⋮0⎠⎟⎟⎟⎟⎞,...,⎝⎜⎜⎜⎜⎛00⋮1⎠⎟⎟⎟⎟⎞⟩
where each component vector is denoted e1,...,en
A subset (basis is a sequence but is commonly refered to as a set) is a basis iff each vector in the space can be expressed by a linear combination of the basis in a unique way
Proof
A sequence is a basis iff it forms a spanning set and is linearly independent. A subset is a spanning set iff every vector in the span can be expressed in at least one way. So, all that remains is to show that a subset is linearly independent iff every vector in the span can be expressed in at most one way.
Consider two representations of a linear combination of v, adding 0⋅βi if necessary v=c1β1+⋯+cnβn=d1β1+⋯+cnβn
This is true iff (c1−d1)β1+⋯+(cn−dn)β=0
Since clearly we don't have 0 as the basis vectors, and because the basis vectors are linearly independent, we must have ci=di for all i, i.e. the coefficients are the same. So, there is only one representation.
i.e. it works like basic coordinates- there's only one way to get (2,5) and that is (2,5)
in a vector space with basis B, the representation of v with respect to B is a column vector of coefficients RepB(v)=⎝⎜⎜⎜⎜⎛c1c2⋮cn⎠⎟⎟⎟⎟⎞B
Since there is only one solution to v=c1β1+⋯+cnβn, there is one unique representation
Example 5.6
Consider the basis E3=⟨⎝⎜⎛100⎠⎟⎞,⎝⎜⎛010⎠⎟⎞,⎝⎜⎛001⎠⎟⎞⟩
The representation of v=⎝⎜⎛123⎠⎟⎞
is the coordinate (1,2,3), or using the above notation RepE3=⎝⎜⎛123⎠⎟⎞B
Example 5.7
The basis B=⟨1+x,1−x⟩ spans the space of linear polynomials P1={a+bx∣a,b∈R}
The representation can be calculated as a linear combination of the basis vectors a+bx=c1(1+x)+c2(1−x)=(c1+c2)+(c1−c2)x c1+c2=ac1−c2=b
The solution to this is c1=(a+b)/2 and c2=(a−b)/2, so the coordinate is RepB(a+bx)=(2a+b2a−b)